﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: RepaymentEntity.cs
// 修改时间：2020-9-8 10:40:09
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：Repayment 的实体类.
	/// </summary>
	[Table("Repayment")]
	public partial class RepaymentEntity
	{
		#region Properties
		private int? _id = 0;
		/// <summary>
		/// (主键)(自增长)
		/// </summary>
		[Column("ID",TypeName="int")]
		[Key]
		[MyFlag("Identity")]
		public int? ID
		{
			get {return _id;}
			set {_id = value;}
		}
		
		private int? _orderID = 0;
		/// <summary>
		/// 订单ID
		/// </summary>
		[Column("OrderID",TypeName="int")]
		public int? OrderID
		{
			get {return _orderID;}
			set {_orderID = value;}
		}
		
		private int? _orderItemID = 0;
		/// <summary>
		/// 订单明细ID
		/// </summary>
		[Column("OrderItemID",TypeName="int")]
		public int? OrderItemID
		{
			get {return _orderItemID;}
			set {_orderItemID = value;}
		}
		
		private int? _userID = 0;
		/// <summary>
		/// 会员ID
		/// </summary>
		[Column("UserID",TypeName="int")]
		public int? UserID
		{
			get {return _userID;}
			set {_userID = value;}
		}
		
		private int? _deadline = 0;
		/// <summary>
		/// 总期限
		/// </summary>
		[Column("Deadline",TypeName="int")]
		public int? Deadline
		{
			get {return _deadline;}
			set {_deadline = value;}
		}
		
		private int? _currentDeadline = 0;
		/// <summary>
		/// 当前期限
		/// </summary>
		[Column("CurrentDeadline",TypeName="int")]
		public int? CurrentDeadline
		{
			get {return _currentDeadline;}
			set {_currentDeadline = value;}
		}
		
		private DateTime? _rePayDate = null;
		/// <summary>
		/// 应还日期
		/// </summary>
		[Column("RePayDate",TypeName="datetime")]
		public DateTime? RePayDate
		{
			get {return _rePayDate;}
			set {_rePayDate = value;}
		}
		
		private decimal? _rePayMoney = 0;
		/// <summary>
		/// 应还金额(本金+利息)
		/// </summary>
		[Column("RePayMoney",TypeName="money")]
		public decimal? RePayMoney
		{
			get {return _rePayMoney;}
			set {_rePayMoney = value;}
		}
		
		private decimal? _principal = 0;
		/// <summary>
		/// 应还本金
		/// </summary>
		[Column("Principal",TypeName="money")]
		public decimal? Principal
		{
			get {return _principal;}
			set {_principal = value;}
		}
		
		private decimal? _interest = 0;
		/// <summary>
		/// 应还利息
		/// </summary>
		[Column("Interest",TypeName="money")]
		public decimal? Interest
		{
			get {return _interest;}
			set {_interest = value;}
		}
		
		private decimal? _monthFeeMoney = 0;
		/// <summary>
		/// 月服务费
		/// </summary>
		[Column("MonthFeeMoney",TypeName="money")]
		public decimal? MonthFeeMoney
		{
			get {return _monthFeeMoney;}
			set {_monthFeeMoney = value;}
		}
		
		private decimal? _vIPMoney = 0;
		/// <summary>
		/// VIP服务费
		/// </summary>
		[Column("VIPMoney",TypeName="money")]
		public decimal? VIPMoney
		{
			get {return _vIPMoney;}
			set {_vIPMoney = value;}
		}
		
		private decimal? _insuranceMoney = 0;
		/// <summary>
		/// 保险费用
		/// </summary>
		[Column("InsuranceMoney",TypeName="money")]
		public decimal? InsuranceMoney
		{
			get {return _insuranceMoney;}
			set {_insuranceMoney = value;}
		}
		
		private decimal? _rePayMoneySub = 0;
		/// <summary>
		/// 应还总金额（本金+利息+服务费+VIP服务费用+保险）
		/// </summary>
		[Column("RePayMoneySub",TypeName="money")]
		public decimal? RePayMoneySub
		{
			get {return _rePayMoneySub;}
			set {_rePayMoneySub = value;}
		}
		
		private int? _repaymentType = 0;
		/// <summary>
		/// 还款类型
		/// </summary>
		[Column("RepaymentType",TypeName="int")]
		public int? RepaymentType
		{
			get {return _repaymentType;}
			set {_repaymentType = value;}
		}
		
		private int? _repaymentStatus = 0;
		/// <summary>
		/// 还款状态（0：未还款；1：已还款；2：逾期；）
		/// </summary>
		[Column("RepaymentStatus",TypeName="int")]
		public int? RepaymentStatus
		{
			get {return _repaymentStatus;}
			set {_repaymentStatus = value;}
		}
		
		private DateTime? _trueRePayDate = null;
		/// <summary>
		/// 实际还款日期
		/// </summary>
		[Column("TrueRePayDate",TypeName="datetime")]
		public DateTime? TrueRePayDate
		{
			get {return _trueRePayDate;}
			set {_trueRePayDate = value;}
		}
		
		private decimal? _trueRePayMoney = 0;
		/// <summary>
		/// 实际还款金额
		/// </summary>
		[Column("TrueRePayMoney",TypeName="money")]
		public decimal? TrueRePayMoney
		{
			get {return _trueRePayMoney;}
			set {_trueRePayMoney = value;}
		}
		
		private int? _overdueDays = 0;
		/// <summary>
		/// 逾期天数
		/// </summary>
		[Column("OverdueDays",TypeName="int")]
		public int? OverdueDays
		{
			get {return _overdueDays;}
			set {_overdueDays = value;}
		}
		
		private decimal? _lateFee = 0;
		/// <summary>
		/// 滞纳金
		/// </summary>
		[Column("LateFee",TypeName="money")]
		public decimal? LateFee
		{
			get {return _lateFee;}
			set {_lateFee = value;}
		}
		
		private int? _pressMoneyStatus = 0;
		/// <summary>
		/// 催收状态（0：待还款；1：同意还款；2：催收失败；）
		/// </summary>
		[Column("PressMoneyStatus",TypeName="int")]
		public int? PressMoneyStatus
		{
			get {return _pressMoneyStatus;}
			set {_pressMoneyStatus = value;}
		}
		
		private System.String _pressMoneyStaff = string.Empty;
		/// <summary>
		/// 催收员
		/// </summary>
		[Column("PressMoneyStaff",TypeName="nvarchar(50)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PressMoneyStaff
		{
			get {return _pressMoneyStaff;}
			set {_pressMoneyStaff = value;}
		}
		
		private System.String _remark = string.Empty;
		/// <summary>
		/// 备注
		/// </summary>
		[Column("Remark",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark
		{
			get {return _remark;}
			set {_remark = value;}
		}
		
		private System.String _remark1 = string.Empty;
		/// <summary>
		/// 催收记录
		/// </summary>
		[Column("Remark1",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark1
		{
			get {return _remark1;}
			set {_remark1 = value;}
		}
		
		private System.String _remark2 = string.Empty;
		/// <summary>
		/// 
		/// </summary>
		[Column("Remark2",TypeName="nvarchar(MAX)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Remark2
		{
			get {return _remark2;}
			set {_remark2 = value;}
		}
		
		#endregion
	}
}
